import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';

///
/// scroll physics
///
class QuickerScrollPhysics extends BouncingScrollPhysics {
  const QuickerScrollPhysics({ScrollPhysics? parent}) : super(parent: parent);

  @override
  BouncingScrollPhysics applyTo(ScrollPhysics? ancestor) {
    return QuickerScrollPhysics(parent: ancestor);
  }

  @override
  SpringDescription get spring => SpringDescription.withDampingRatio(
      mass: .2, stiffness: 300.0, ratio: 1.1);
}
